package com.example.helloworld;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

public class ServiceBind extends Service {
    private IBinder binder;
    public ServiceBind() {
    }
    class ServiceBinder extends Binder{ }

    @Override
    public IBinder onBind(Intent intent) {
        System.out.println("ServiceBind onBind");
        binder = new ServiceBinder();
        return binder;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        System.out.println("ServiceBind onCreate");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        System.out.println("ServiceBind onDestroy");
    }

    @Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
        System.out.println("ServiceBind onStart");
    }
}